def calculate_electricity_usage(power, hours):
    return power * hours / 1000

total_people = 3
people_data = []

for i in range(total_people):
    print(f"请输入第{i+1}个人的数据：")
    power = float(input("用电功率（单位W）："))
    hours = float(input("用电时长（单位h）："))
    people_data.append((power, hours))

for i, data in enumerate(people_data):
    usage = calculate_electricity_usage(data[0], data[1])
    print(f"第{i+1}个人的每月用电量为：{usage:.2f} kW·h")
